<%@ page import="ru.vba.kitchen.model.User"%>


<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'login', 'error')} ">
	<label for="login"> <g:message code="user.login.label"
			default="Login" />

	</label>
	<g:textField name="login" maxlength="32" value="${userInstance?.login}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'email', 'error')} ">
	<label for="email"> <g:message code="user.email.label"
			default="Email" />

	</label>
	<g:field type="email" name="email" value="${userInstance?.email}" />
</div>


<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'name', 'error')} ">
	<label for="name"> <g:message code="user.name.label"
			default="Name" />

	</label>
	<g:textField name="name" value="${userInstance?.name}" />
</div>
<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'avatar', 'error')} ">
	<label for="avatar"> 
		<g:message code="user.avatar.label" default="Upload photo" />
	</label>
	<input type="file" id="avatar" name="avatar" />
</div>
<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'hash', 'error')} ">
	<label for="hash"> <g:message code="user.password.label"
			default="Password" />

	</label>
	<g:passwordField name="password" value="${userInstance?.hash}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'hash', 'error')} ">
	<label for="hash"> <g:message code="user.submitPassword.label"
			default="Submit Password" />

	</label>
	<g:passwordField name="submitPassword" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'hash', 'error')} ">
	<label for="hash"> <g:message code="user.spamMe.label"
			default="Spam Me" />

	</label>
	<g:checkBox name="spamMe"  />
</div>